#!/bin/bash

function build_sh()
{
(
	bash build_qcm6125_sc668s.sh
)
}

user=bean
ipaddr=192.168.23.122
platform=trinket

# files_dir=/home/zsw/files/
files_dir=/disk1/bean/sdk/smart/qcm6125_android13.0_r04_r020/UM.9.15/out/target/product/trinket/

# TARGET_DIR=LINUX/android/out/target/product/kona/
TARGET_DIR=LINUX/android/out/target/product/$platform/

function copy_files()
{
(
        scp $user@$ipaddr:$files_dir/abl.elf   $TARGET_DIR/abl.elf
        scp $user@$ipaddr:$files_dir/*.img     $TARGET_DIR/
        scp $user@$ipaddr:$files_dir/vmlinux   $TARGET_DIR/obj/KERNEL_OBJ/
        scp -r $user@$ipaddr:$files_dir/vendor/firmware/   $TARGET_DIR/vendor/
	
)
}

copy_files

build_sh

